package com.tl.commonlibrary.network.bean.base;

import com.tl.commonlibrary.AppConfig;
import com.tl.commonlibrary.ui.beans.User;
import com.tl.commonlibrary.ui.user.Account;

import java.io.Serializable;

/**
 * Created by Administrator on 2017/6/9 0009.
 * 公共参数
 */

public class Header implements Serializable {
    private String token;
//    private long uuid;
    private String app_version;
    private String app_model;

    public Header() {
        this(Account.getUser());
    }

    public Header(User user) {
        app_version = AppConfig.appVersion;
        app_model = AppConfig.appModel;
        if (user != null) {
            token = user.getToken();
//            uuid = user.getUid();
        }
    }

    public String getApp_version() {
        return app_version;
    }

    public void setApp_version(String app_version) {
        this.app_version = app_version;
    }

    public String getApp_model() {
        return app_model;
    }

    public void setApp_model(String app_model) {
        this.app_model = app_model;
    }
}
